package com.dss.demo;

import com.dss.sdk.response.DssResponse;
import com.dss.sdk.utils.json.GsonUtil;

/**
 * @author Fadada
 */
public abstract class ApiDemoUtils {
    public static void println(DssResponse response) {
        if (response.isSuccess()) {
            System.out.println(GsonUtil.toJsonStr(response.getData()));
        } else {
            System.out.println(String.format("code %s,message %s", response.getCode(), response.getMessage()));
        }
    }
}
